/**
 * @see https://umijs.org/docs/max/access#access
 * */

export default function access(initialState: { currentUser?: USER_TYPE.Info } | undefined) {
  // const { currentUser } = initialState ?? {};
  // console.log(currentUser);
  console.log(initialState);
  return {
    // canAdmin: currentUser && currentUser.access === 'admin',
  };
}
